package com.ruoyi.worker.service.impl;

import com.ruoyi.worker.domain.Company;
import com.ruoyi.worker.mapper.CompanyMapper;
import com.ruoyi.worker.service.CompanyService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @ClassName CompanyServiceImpl
 * @Description TODO
 * @Author zhangxx
 * @Date 2021/8/29 0:00
 * @Version 1.0
 */
@Service
public class CompanyServiceImpl implements CompanyService {
    @Autowired
    private CompanyMapper companyMapper;
    @Override
    public List<Company> getCompanyList(Company company) {
        return companyMapper.getCompanyList(company);
    }
    @Override
    public int updateStatus( Map<String,Object> requestParam){
      return    companyMapper.updateStatus(requestParam);
    }

    @Override
    public int insertCompany(Company company) {
        return companyMapper.insertCompany(company);
    }

    @Override
    public Company getCompany(int id) {
        return companyMapper.getCompany(id);
    }

    @Override
    public int deleteCompany(int id) {
        return companyMapper.delCompanyById(id);
    }

    @Override
    public int updateCompany(Company company) {
        return companyMapper.updateCompany(company);
    }
    @Override
    public int updateCompanyBatch(List<Company> companyList) {
        return  companyMapper.updateCompanyBatch(companyList);
    }
}
